package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {
    PageInfo list(StrategyCommentQueryObject qo);
    void saveOrUpdate(StrategyComment strategyComment);

    void updateState(StrategyComment strategyComment);

    StrategyComment selectBystrategycommentId(Long strategycommentId);

    /**
     * 根据作者id查询点评
     * @param qo
     * @return
     */
    PageInfo queryListByAuthorId(QueryObject qo);

    int queryForCount(Long authorId);

    //查询状态为推荐的评论
    List<StrategyComment> selectByState();
}
